package com.springsecurity.common.vo;

import com.springsecurity.common.enums.ExceptionEnums;

public class ExceptionResult {
	private int status;
	private String message;
	private Long timestamp;
	
	public ExceptionResult(ExceptionEnums em) {
		super();
		this.status = em.getCode();
		this.message = em.getMsg();
		this.timestamp = System.currentTimeMillis();
	}
	public int getStatus() {
		return status;
	}
	public void setStatus(int status) {
		this.status = status;
	}
	public String getMessage() {
		return message;
	}
	public void setMessage(String message) {
		this.message = message;
	}
	public Long getTimestamp() {
		return timestamp;
	}
	public void setTimestamp(Long timestamp) {
		this.timestamp = timestamp;
	}
	
	public ExceptionResult() {
		super();
	}
	
	
}
